package com.scsj.supermarket.base;

import com.scsj.supermarket.bean.NearByTradeAreaBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * Created by Administrator on 2018/6/27.
 */

public class TradeAreaBase {

    public interface IView{
        void showSuccessMsg(String s,NearByTradeAreaBean nearByTradeAreaBean);

        void showErrorMsg(String s);

        /**
         * 获取附近商圈
         */
        void getNearbyTradeArea(NearByTradeAreaBean nearByTradeAreaBean);
    }

    public interface IPresenter{

        /**
         * 传递附近商圈数据
         */
        void deliverNearTradeData(RequestBody requestBody);
    }

    public interface IModel{
        /**
         * 联网获取附近商圈数据
         */

        Subscription getNearbyTradeArea(RequestBody requestBody,ResponseCallback<NearByTradeAreaBean> callback);
    }




}
